import axios from '@/utils/request.js'
// 空气净化器接口
// 打开
export const open = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/open',
		data
	})
}

// 关闭
export const close = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/close',
		data
	})
}

// openUV
export const openUV = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/openUV',
		data
	})
}

// closeUV
export const closeUV = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/closeUV',
		data
	})
}

// 打开久续节能
export const openPlasma = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/openPlasma',
		data
	})
}

// 关闭久续节能
export const closePlasma = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/closePlasma',
		data
	})
}

// 更改模式
export const changeMode = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/changeMode',
		data
	})
}

// 更改风扇等级
export const changeFanLevel = (data) => {
	return axios({
		method: 'POST',
		url: '/device/airCleaner/changeFanLevel',
		data
	})
}
